﻿using System.ComponentModel.DataAnnotations;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Web.Models.CoreData
{
    /// <summary>
    /// 报文数据表
    /// </summary>
    [Table("treport")]
    public class Report
    {
        /// <summary>
        /// 消息唯一标识
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Column("cKey")]
        public String Key { get; set; }

        
        [Column("mmsi")]
        public String MMSI { get; set; }

        [Column("shipName")]
        public String ShipName { get; set; }

        [Column("reportTime")]
        public long ReportTime { get; set; }

        /// <summary>
        /// 报文类型
        /// </summary>
        [Column("type")]
        public String Type { get; set; }

        /// <summary>
        /// hash
        /// </summary>
        [Column("valueHash")]
        public String valueHash { get; set; }

        /// <summary>
        /// 报文值
        /// </summary>
        [Column("cValue")]
        public String Value { get; set; }
    }
}
